package model

import "gorm.io/gorm"

type Comment struct {
	gorm.Model
	TitleId int    `gorm:"type:int;not null;comment:'用户ID'" json:"title_id"`
	Content string `gorm:"type:char(100);not null;comment:'评论内容'" json:"content"`
	Likes   int    `gorm:"type:int ;not null;comment:'点赞'" json:"likes"`
}
